package com.smedi.ismedi.personnel.core.infrastructure.constant;

import com.smedi.ismedi.web.starter.exception.BasicError;
import com.smedi.ismedi.web.starter.exception.ErrorItem;

/**
 * 错误消息提示
 */
public class CustomError extends BasicError {
    public static final ErrorItem ERROR_PERSON_TYPE = new ErrorItem(3, "错误的人员类型！");

    public static final ErrorItem ID_CARD_DUPLICATE = new ErrorItem(4, "身份证号重复！");

    public static final ErrorItem EMPLOYEE_NUM_DUPLICATE = new ErrorItem(5, "员工号重复！");

    public static final ErrorItem MOBILE_DUPLICATE = new ErrorItem(6, "手机号重复！");

    public static final ErrorItem ASSIGNMENT_MISS = new ErrorItem(7, "分配信息缺失！");

    public static final ErrorItem PROFILE_IMAGE_SIZE_ERROR = new ErrorItem(8, "员工照片大小超过最大限制！");

    public static final ErrorItem UPLOAD_FILE_IS_NOT_IMAGE = new ErrorItem(9, "上传文件不是图片格式！");

    public static final ErrorItem FDFS_UPLOAD_ERROR = new ErrorItem(10, "头像文件上传失败！");

    public static final ErrorItem IMAGE_UUID_MISS = new ErrorItem(11, "头像文件临时id丢失！");

    public static final ErrorItem CREATE_USERNAME_ERROR = new ErrorItem(12, "创建用户名错误！");

    public static final ErrorItem ORG_NOT_AVAILABLE = new ErrorItem(13, "当前组织不存在，或不可用！");

    public static final ErrorItem ORG_ID_MISS = new ErrorItem(14, "组织id缺失！");

    public static final ErrorItem EXCEL_SHEET_MISS = new ErrorItem(15, "未找到页签！");

    public static final ErrorItem EXCEL_MAX_ROW_ERROR = new ErrorItem(16, "导入行数超过最大限制：" + ConstantField.maxTemplateRow + "！");

    public static final ErrorItem EXCEL_EMPTY_ERROR = new ErrorItem(17, "Excel内无数据！");

    public static final ErrorItem EXCEL_TEMPLATE_ERROR = new ErrorItem(18, "请传入正确的Excel模板！");

    public static final ErrorItem VALIDATE_DATA_MISS = new ErrorItem(19, "校验数据不存在或者已失效！");

    public static final ErrorItem VALIDATE_ID_NOT_THE_SAME = new ErrorItem(20, "校验id不一致！");

    public static final ErrorItem NOT_ALL_VALIDATE = new ErrorItem(21, "未全部校验通过！");

    public static final ErrorItem BATCH_SAVE_MAX_ERROR = new ErrorItem(22, "批量保存超过最大数量！");

    public static final ErrorItem PERSON_ID_NOT_EXIST = new ErrorItem(23, "企业库同步中人员id不存在");

    public static final ErrorItem PROFILE_IMAGE_BASE64_EMPTY = new ErrorItem(24, "人员照片base64未获取到！");

    public static final ErrorItem PROJECT_NOT_AVAILABLE = new ErrorItem(25, "当前项目不可用或不存在！");

    public static final ErrorItem PROJECT_ORGANIZATION_NOT_BELONG_PROJECT = new ErrorItem(26, "当前组织不属于该项目！");

    public static final ErrorItem PROJECT_ID_MISS = new ErrorItem(27, "项目id缺失！");

    public static final ErrorItem STATUS_CAN_NOT_THE_SAME = new ErrorItem(28, "当前状态与待修改的状态一致！");

    public static final ErrorItem ASSIGNMENT_NOT_EXIST = new ErrorItem(29, "分配不存在！");

    public static final ErrorItem PERSON_NOT_EXIST = new ErrorItem(30, "人员不存在！");

    public static final ErrorItem PROFILE_IMAGE_NOT_EXIST = new ErrorItem(30, "人员头像不存在！");

    public static final ErrorItem ID_CARD_FORMAT_ERROR = new ErrorItem(31, "身份证卡号格式错误！");

    public static final ErrorItem ID_CARD_EMPTY = new ErrorItem(32, "身份证卡号缺失！");

    public static final ErrorItem SIGNATURE_UUID_MISS = new ErrorItem(33, "签章文件临时id丢失！");

    public static final ErrorItem SIGNATURE_NOT_EXIST = new ErrorItem(34, "人员签章不存在！");
}
